package top.csjss.hospital.enums;

/**
 * @Author ztf
 * @Date 19:15 2021/10/15
 **/
public enum HospitalExceptionEnums {
    USERNAME_PASSWORD_ERROR(666, "用户或密码输入错误"),
    REQUEST_PARAMETER_ERROR(400, "请求参数异常！"),
    USER_AVAILABLE_ERROR(667, "用户状态异常"),
    USER_ADD_ERROR(668,"添加用户失败"),
    USER_SAVE_USER_ROLE_ERROR(700,"保存角色信息失败"),
    USER_UPDATA_ERROR(669,"修改用户失败"),
    USER_RESET_PASSWORD_ERROR(665,"重置密码失败"),
    USER_DELETE_ERROR(664,"重置密码失败"),
    ROLE_SAVE_ROLE_MENU_ERROR(801,"保存角色菜单信息失败"),
    ROLE_DELETE_ERROR(802,"删除角色失败"),
    ROLE_INSERT_ERROR(803,"添加角色失败"),
    ROLE_UPDATE_ERROR(804,"修改角色失败"),
    LOGIN_TIMEOUT(555,"登陆超时"),
    REPORT_ADD_ERROR(400,"患者添加失败"),
    TRANSFER_TO_HOSPITAL(900,"转院失败"),
    CAO_UPDATE_ETIOLOGY(950,"修改病因失败"),
    CAO_ADD_PRESCRIPTION(960,"添加-修改处方-项目信息失败"),
    CAO_DELETE_PRESCRIPTION(961,"删除处方信息失败"),
    CASHIER_DELETE_ERROR(962,"刪除項目失敗"),
    PHARMACY_UPDATE_NUM_ERROR(963,"更新項目信息失敗")
    ;


    private Integer code;
    private String msg;

    HospitalExceptionEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
